using System;

namespace TileEngine
{
    public struct Size
    {
        private int width;
        private int height;

        public int Width
        {
            get { return this.width; }
            set { this.width = Math.Max(value, 0); }
        }

        public int Height
        {
            get { return this.height; }
            set { this.height = Math.Max(value, 0); }
        }

        public Size(int x, int y)
        {
            this.width = x;
            this.height = y;
        }
    }
}
